package com.atguigu.dga.dolphinscheduler.service;

import com.atguigu.dga.dolphinscheduler.bean.TDsTaskInstance;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tubage
 * @since 2024-03-19
 */
public interface TDsTaskInstanceService extends IService<TDsTaskInstance> {
    // TODO Join（mybatis） inSql  exists方法都可(MP)
    List<TDsTaskInstance> getTdsTaskInstanceListByJoin(String assessDate);
    List<TDsTaskInstance> getTdsTaskInstanceListByIn(String assessDate);
    List<TDsTaskInstance> getTdsTaskInstanceListByExists(String assessDate);

    // TODO 封装 assessor是否有报错的方法
    List<TDsTaskInstance> getFailTdsTaskInstanceList(String name, String assessDate);

    // TODO 产出时效
    List<TDsTaskInstance> getBeforeDaysInstanceList(String name , String assessDateStr , String beforeDaysDateStr);
}
